
package system.base;

import framework.core.*;

/*
	Author    :Wing
	CreateTime:2008-02-04 10:10:46
*/
public class UserFuncSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_user_id = "" ; // all

	private String m_func_id = "" ; // all
		

public UserFuncSearchEvent() 
{
	super();
	
	setOrderField(UserFunc.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getUserId()
	{
		return m_user_id ;
	}
	public void setUserId(String v)
	{
		m_user_id = v;
	}

	public String getFuncId()
	{
		return m_func_id ;
	}
	public void setFuncId(String v)
	{
		m_func_id = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewUserId() throws Exception
	{
		return Value.view(getUserId());
	}

	public String viewFuncId() throws Exception
	{
		return Value.view(getFuncId());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(UserFunc.ID,getId()));

	c.add(getCondition(UserFunc.USER_ID,getUserId()));

	c.add(getCondition(UserFunc.FUNC_ID,getFuncId()));
		

			
		return c ;
	}
	
//add by Wing start

//add by Wing end
}
